QFLIM
SCR_XLIM
SCR_YLIM
XLIM
YLIM

Syntax: QFLIM ([#channel,] n)
   and: SCR_XLIM [(#ch)]
   and: SCR_YLIM [(#ch)]
   and: XLIM
    or: XLIM (#ch)   (v2.08+)
   and: YLIM
    or: YLIM (#ch)   (v2.08+)
Location: Fn (QFLIM)
          SMSQ/E (SCR_XLIM, SCR_YLIM)
          ATARI_REXT v1.29+ (XLIM, YLIM)

The function QFLIM returns the following information about the maximum outline size, in the absolute co-ordinate system for the different n:

n information 
0 width in pixels
1 height in pixels
2 leftmost horizontal position 
3 uppermost vertical position

QFLIM needs an open window to get the information from (default #1). The return values refer to the current job.

NOTE:
The Pointer Interface makes a distinction between the primary window (generally the first window to be used for input/output operations) and secondary windows.  windows, using QFLIM on the primary window (eg. #0 in SuperBASIC) will return the physical screen size, ie. the parameters of the largest possible window:

WINDOW QFLIM(#0,0),QFLIM(#0,1),QFLIM(#0,2),QFLIM(#0,3)

SCR_XLIM and XLIM are the same as QFLIM (#ch,0) except that the channel parameter is optional (defaults #0).

SCR_YLIM and YLIM are the same as QFLIM (#ch,1) except that they also defaults to #0.

CROSS-REFERENCE:
WMAN$, WINF$ allow you to find out various information about the Pointer Environment. 
See also OUTLN.
